package com.xhd.base.log;

import com.xhd.base.log.impl.XLogFactory;

public abstract class LogFactory {
	static LogFactory LogINS;

	  public abstract Log getInstance(Class paramClass)
	    throws LogConfigurationException;

	  public abstract Log getInstance(String paramString)
	    throws LogConfigurationException;

	  public static LogFactory getFactory()
	    throws LogConfigurationException
	  {
	    if (LogINS== null)
	    	LogINS = new XLogFactory();
	    return LogINS;
	  }

	  public static Log getLog(Class paramClass)
	    throws LogConfigurationException
	  {
	    return getFactory().getInstance(paramClass);
	  }

	  public static Log getLog(String paramString)
	    throws LogConfigurationException
	  {
	    return getFactory().getInstance(paramString);
	  }
}
